package org.example.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @author zfj
 * @date 2022/2/17 -12:08
 */
@SpringBootApplication
@EnableEurekaClient  //CS架构 在服务启动后自动注册到Eureka中
@EnableDiscoveryClient
//添加对熔断的支持
@EnableCircuitBreaker
public class HystrixDeptProvider_8001 {
	public static void main(String[] args) {
		SpringApplication.run(HystrixDeptProvider_8001.class,args);
	}
}
